<?php echo $javascript->link('ckeditor/ckeditor', 'ckfinder/ckfinder'); ?>
<div class="schools form">
<?php echo $this->Form->create('School');?>
	<fieldset>
 		<legend><?php __('Edit School'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('name');
		echo $this->Form->input('abbreviation_name');
		echo $this->Form->input('established', array('label' => 'Established', 'type' => 'text'));
		echo $this->Form->input('form');
		echo $this->Form->input('rector');
		echo $this->Form->input('address');
		echo $this->Form->input('phone');
		echo $this->Form->input('website');
		echo $this->Form->input('image', array('type' => 'file'));
		echo $this->Form->input('short_description');
		//Fckeditor
		echo $this->Form->input('description', array('cols' => 60, 'rows' => 3));
		echo $this->FckEditor->create('School.description',array('toolbar' => 'extra'));
		//Fckeditor
		echo $this->Form->input('level_id');
		echo $this->Form->input('user_id');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('School.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('School.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Schools', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Levels', true), array('controller' => 'levels', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Level', true), array('controller' => 'levels', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Announcements', true), array('controller' => 'announcements', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Announcement', true), array('controller' => 'announcements', 'action' => 'add')); ?> </li>
	</ul>
</div>